package com.usabb.api.dto;

import com.usabb.domain.HospitalDO;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

@Getter
@Setter
@NoArgsConstructor
public class HospitalDTO {

    private String name;
    private String englishName;
    private String region;
    private String address;
    private String nicu;

    private String intro;
    private String naturalChildbirthPrice;
    private String caesareanSectionPrice;
    private String otherFee;
    private String doctors;


    public static HospitalDTO of(HospitalDO hospitalDO) {
        HospitalDTO hospitalDTO = new HospitalDTO();
        BeanUtils.copyProperties(hospitalDO, hospitalDTO);

        return hospitalDTO;
    }

}